How to pass a the image src to a function to update another image

join shbcf.ru